package com.hilin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hilin.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author qhl
 * @since 2021-11-24
 */
@Data
@ApiModel("码表")
@TableName("sys_code")
public class SysCodePo extends BaseEntity<SysCodePo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("数据id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("代码")
    private String code;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("父节点代码")
    @TableField("parent_code")
    private String parentCode;
    @ApiModelProperty("父节点名称")
    @TableField("parent_name")
    private String parentName;
    @ApiModelProperty("类型代码")
    @TableField("type_code")
    private String typeCode;
    @ApiModelProperty("类型名称")
    @TableField("type_name")
    private String typeName;
    @ApiModelProperty("排序，正序")
    private String sort;
    @ApiModelProperty("创建人")
    private String creator;
    @ApiModelProperty("创建人类型")
    @TableField("creator_type")
    private String creatorType;
    @ApiModelProperty("创建时间")
    @TableField("creator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;
    @ApiModelProperty("更新人")
    private String updator;
    @ApiModelProperty("更新人类型")
    @TableField("updator_type")
    private String updatorType;
    @ApiModelProperty("更新时间")
    @TableField("updator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatorTime;
}